package com.yunyouyi.cpicture.interfaces.controller;

import com.yunyouyi.cpicture.infrastructure.common.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/")
public class MainController {

    /**
     * 健康检查
     * @return
     */
    @GetMapping("/health")
    public Result<String> healthCheck() {
        return Result.success();
    }
}
